import logging
#导入版本管理模块
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from info import create_app,db,models
# app = Flask(__name__)
app = create_app('develop')
#创建manager对象,管理app
manager = Manager(app)
#关联db,app 使用Migrate
Migrate(app,db)
#添加操作命令
manager.add_command('db',MigrateCommand)


if __name__ == '__main__':
    manager.run()